import request from "@/utils/request";
export const getAll=(name,cityName,personChargeName,page,pageSize)=>request.get(`/warehouse/list?name=${name}&cityName=${cityName}&personChargeName=${personChargeName}&page=${page}&pageSize=${pageSize}`)
export const addApi=(data)=>request.post('/warehouse/add',data)
export const queryByIdApi=(id)=>request.get(`/warehouse/${id}`)
export const updateApi=(data)=>request.put('/warehouse',data)
export const deleteApi=(id)=>request.delete(`/warehouse?id=${id}`)
export const getCityList=()=>request.get(`/supplier/cityList`)